package com.huawei.appgallery.packagemanager.api.bean;

import android.content.ContentValues;
import android.database.Cursor;
import android.text.TextUtils;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;
import o.blw;
import o.bmc;
import o.bmg;

public class ListStringTypeProcess implements bmc<List<String>> {
    public String ˊ() {
        return "TEXT";
    }

    public void ˋ(ContentValues contentValues, String str, List<String> list) {
        String str2 = null;
        if (list != null) {
            str2 = TextUtils.join(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, list);
        }
        contentValues.put(str, str2);
    }

    public void ˎ(blw o_blw, Field field, Cursor cursor, int i) {
        try {
            Object string = cursor.getString(i);
            Object obj = null;
            if (!TextUtils.isEmpty(string)) {
                obj = Arrays.asList(TextUtils.split(string, "\\|"));
            }
            field.set(o_blw, obj);
        } catch (IllegalAccessException e) {
            bmg.ˊ.ˎ("ListStringTypeProcess", "put value failed:IllegalAccessException");
        }
    }
}
